package com.example.service.impl;

import com.example.mapper.CityMapper;
import com.example.pojo.City;
import com.example.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl implements CityService {
    @Autowired
    private CityMapper cityMapper;

    @Override
    public List<City> getCities() {
        return CityMapper.getCities();
    }



    @Override
    public void save(City city) {
        cityMapper.save(city);
    }


}
